package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * foodstuff_info
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "foodstuff_info")
public class EntityFoodstuffInfo implements Serializable {

    private static final long serialVersionUID = -453377957439655819L;
    /**
     * 菜品编号，主键自增
     */
    @TableId(value = "foodstuff_id", type = IdType.AUTO)
    private Integer foodstuffId;

    /**
     * 单位编号
     */
    private Long comId;
    private Integer merchId;

    private Integer foodClassId;
    private String foodstuffName;
    private String foodstuffCode;
    private Integer sort;
    private String remark;

    /**
     * 生成时间，计划日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date createTime;

    /**
     * 创建人p_id
     */
    private Integer createUser;

    /**
     * 更新时间，最后使用日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date updateTime;

    /**
     * 更新人p_id
     */
    private Integer updateUser;


    /**
     * CREATE TABLE `foodstuff_info` (
     *   `foodstuff_id` int(11) NOT NULL AUTO_INCREMENT,
     *   `com_id` int(11) DEFAULT '0',
     *   `merch_id` int(11) DEFAULT '0' COMMENT '商户编号（0表示单位）',
     *   `food_class_id` int(11) DEFAULT '0' COMMENT '食材分类编号',
     *   `foodstuff_name` varchar(50) DEFAULT '' COMMENT '食材名称',
     *   `foodstuff_code` varchar(20) DEFAULT '' COMMENT '食材编码（建议用国标码）',
     *   `sort` tinyint(4) DEFAULT '0' COMMENT '排序号',
     *   `remark` varchar(200) DEFAULT '' COMMENT '说明',
     *   `create_time` datetime DEFAULT NULL COMMENT '生成时间',
     *   `create_user` varchar(50) DEFAULT '' COMMENT '创建人',
     *   `update_time` datetime DEFAULT NULL COMMENT '更新时间',
     *   `update_user` varchar(50) DEFAULT '' COMMENT '更新人',
     *   PRIMARY KEY (`foodstuff_id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='食材信息表';
     */

    @TableField(exist = false)
    String foodClassName;

}